﻿using Microsoft.Extensions.DependencyInjection;
using ProjectTemplate.IRepository;
using ProjectTemplate.IRepository.UnitOfWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectTemplate.Repository.Installer
{
    public static class Installer
    {
        public static IServiceCollection AddRepository(this IServiceCollection services)
        {
            services.AddSingleton<IUnitOfWork, UnitOfWork.UnitOfWork>();
            services.AddScoped<ICategoryRepository, CategoryRepository>();

            return services;
        }
    }
}
